package com.hanserwei.community.entity.request.meter;

import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "抄表记录新增/修改请求")
public class MeterRecordSaveRequest {

    @Schema(description = "表计类型ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer typeId;

    @Schema(description = "房屋ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer houseId;

    @Schema(description = "上次读数")
    private BigDecimal previousReading;

    @Schema(description = "本次读数")
    private BigDecimal currentReading;

    @Schema(description = "上次抄表时间")
    private LocalDateTime previousTime;

    @Schema(description = "本次抄表时间")
    private LocalDateTime currentTime;

    @Schema(description = "校验时间")
    private LocalDateTime checkTime;

    @Schema(description = "表计编号")
    private String meter;

    @Schema(description = "备注")
    private String remarks;
}
